/*
Copyright (C) 2009  Raymond Jeon
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/


#ifndef __GL_MDA_MAIN_H__
#define __GL_MDA_MAIN_H__


#define MDA_OK				0
#define MDA_UNKNOWNUSER		1
#define MDA_SPACE			2
#define MDA_SPAM			3


#include "gl_smtp_session.h"

int GlUserMailDelivery(char *szEmail, char *szDataFile, char *szMsgID, glmimeheader_ *header, BOOL bCopy);


BOOL GlConfigSpamFrom			(glmimeheader_ *header, char *szVal, char *szArg);	
BOOL GlConfigSpamTo				(glmimeheader_ *header, char *szVal, char *szArg);	
BOOL GlConfigSpamCc				(glmimeheader_ *header, char *szVal, char *szArg);	
BOOL GlConfigSpamSubject		(glmimeheader_ *header, char *szVal, char *szArg);	



#endif	// __GL_MDA_MAIN_H__
